import Vue from 'vue'
import Vuex from 'vuex'
import * as getters from './getters'
import * as actions from './actions'
import * as mutactions from './mutactions'

Vue.use(Vuex)

const state = {
  user: null,
  token: '',
  unread: 0,
  ws: null,
  msgArr: []
}

const store = new Vuex.Store({
  state: state,
  getters: getters,
  actions: actions,
  mutations: mutactions
})

export default store

